<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03-Vue条件渲染</title>
</head>
<body>
<div id="app">

    <span v-if="flag">if的span</span><br>
    <span v-show="flag">show的span</span>

</div>

</body>
<script src="js/vue.js"></script>
<script>

    var vue = new Vue({
        el: "#app",
        data: {
            flag: false
        },
        methods: {}
    })

</script>
</html>